package rs.belex.belexdroid.beans;

import java.util.List;

import rs.belex.belexdroid.beans.interfaces.Account;
import rs.belex.belexdroid.beans.interfaces.Share;

public class AccountBean implements Account {

	private static final long serialVersionUID = -5794589072080897814L;

	private List<Share> shares;

	public AccountBean() {
		super();
	}

	public AccountBean(List<Share> shares) {
		this.shares = shares;
	}

	public boolean addShare(Share share) {
		boolean result = false;

		if (shares != null) {
			result = shares.add(share);
		}
		return result;
	}

	public List<Share> getShares() {
		return this.shares;
	}

	public void setShares(List<Share> shares) {
		this.shares = shares;
	}

}
